public class HomeWork05_06{
    public static void main(String[] args){
        float income = 6000f;
        float ans = 0f;
        for(int i = 1; i < 20 * 12; i++){
            ans += income;
            income += income * 0.005;
        }
        System.out.println("20年后共得" + ans + "元工资");
    }
}